package com.andy.common.parser;

/**
 * Created by Administrator on 2017/9/4.
 */
public abstract class YamlFactory {
    public String path;

    public YamlFactory(String filePath) {
        this.path = filePath;
    }

    /**
     * parse file
     * {@link com.andy.common.parser.impl.ExcelFileParser}
     * {@link com.andy.common.parser.impl.HdfsFileParser}
     *
     * @return
     */
    protected abstract Object parser();

    /**
     * init configuration
     */
    protected abstract void init();

    /**
     * expose obj to other return Object
     *
     * @return
     */
    public abstract Object getObj();

}
